package com.probiz.estore.customer.service.dwr;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.probiz.estore.common.service.CustomerService;

/**
 * 前台个人账号
 *
 */
public class MyAccountDwr {

	CustomerService customerService;
	
	public void setCustomerService(CustomerService customerService) {
		this.customerService = customerService;
	}

	public void updateAddressAsDefault(HttpServletRequest request,HttpServletResponse response, String addId){
		Integer id = Integer.valueOf(addId);
		customerService.updateAddressAsDefault(id); 
	}
	
	public void delAddress(HttpServletRequest request,HttpServletResponse response, String addId){
		Integer id = Integer.valueOf(addId);
		customerService.delAddress(id);
	}
	
	public void setWishListAsDefault(HttpServletRequest request,HttpServletResponse response, String id){
		Integer wId = Integer.valueOf(id);
		customerService.setWishListAsDefault(wId);
	}
}
